﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZhimeiSoft.Framework.Common.TableInfo
{
    /// <summary>
    /// 消费信息表
    /// </summary>
    public class DBCustConsume : DBBaseInfo
    {
        /// <summary>
        /// 表名称
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "CUSTCONSUME";
        }
        /// <summary>
        /// 消费ID
        /// </summary>
        public int CONSUMEID { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
	    public int CORDERID { get; set; }
        /// <summary>
        /// 生成消费记录开始时间
        /// </summary>
	    public DateTime CREATEDATE { get; set; }
        /// <summary>
        /// C0S 消费中 C0E 消费完成
        /// </summary>
	    public string CONSUMETYPE { get; set; }
        /// <summary>
        /// 卡项目总次数
        /// </summary>
	    public int CSUMCOUNT { get; set; }
        /// <summary>
        /// 卡项目总金额
        /// </summary>
	    public decimal CSUMMONEY { get; set; }
        /// <summary>
        /// CNT 扣次 CNM 扣金额
        /// </summary>
	    public int COMPUTERTYPE { get; set; }
        /// <summary>
        /// 最后一次消费时间
        /// </summary>
	    public DateTime CENDDATE { get; set; }
        /// <summary>
        /// 剩余次数
        /// </summary>
	    public int CBALANCECOUNT { get; set; }
        /// <summary>
        /// 剩余金额
        /// </summary>
        public decimal CBALANCEMONEY { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 消费ID
            /// </summary>
            public const string CONSUMEID = "CONSUMEID";
            /// <summary>
            /// 订单ID
            /// </summary>
            public const string CORDERID = "CORDERID";
            /// <summary>
            /// 生成消费记录开始时间
            /// </summary>
            public const string CREATEDATE = "CREATEDATE";
            /// <summary>
            /// C0S 消费中 C0E 消费完成
            /// </summary>
            public const string CONSUMETYPE = "CONSUMETYPE";
            /// <summary>
            /// 卡项目总次数
            /// </summary>
            public const string CSUMCOUNT = "CSUMCOUNT";
            /// <summary>
            /// 卡项目总金额
            /// </summary>
            public const string CSUMMONEY = "CSUMMONEY";
            /// <summary>
            /// CNT 扣次 CNM 扣金额
            /// </summary>
            public const string COMPUTERTYPE = "COMPUTERTYPE";
            /// <summary>
            /// 最后一次消费时间
            /// </summary>
            public const string CENDDATE = "CENDDATE";
            /// <summary>
            /// 剩余次数
            /// </summary>
            public const string CBALANCECOUNT = "CBALANCECOUNT";
            /// <summary>
            /// 剩余金额
            /// </summary>
            public const string CBALANCEMONEY = "CBALANCEMONEY";
        }
        /// <summary>
        /// C0S 消费中 C0E 消费完成
        /// </summary>
        public static class ENUM_CONSUMETYPE
        {
            /// <summary>
            /// C0S 消费中
            /// </summary>
            public const string C0S = "COS";
            /// <summary>
            /// C0E 消费完成
            /// </summary>
            public const string C0E = "COE";
        }
        /// <summary>
        /// CNT 扣次 CNM 扣金额
        /// </summary>
        public static class ENUM_COMPUTERTYPE{
            /// <summary>
            /// CNT 扣次
            /// </summary>
            public const string CNT = "CNT";
            /// <summary>
            /// CNM 扣金额
            /// </summary>
            public const string CNM = "CNM";
        }
    }
}
